package com.ruoyi.data.vo;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(chain = true)
public class QikeUrlRequest {

  private TenantInfo tenantInfo;
  private UserInfo userInfo;
  private String moduleName;

  public QikeUrlRequest(String tenantId, String tenantName, String code, String appCode, String userId, String userName, String moduleName) {
    this.tenantInfo = new TenantInfo().setId(tenantId).setName(tenantName).setCode(code).setAppCode(appCode);
    this.userInfo = new UserInfo().setId(userId).setUserName(userName);
    this.moduleName = moduleName;
  }

  @Getter
  @Setter
  @Accessors(chain = true)
  public static class TenantInfo {
    private String id;
    private String name;
    private String code;
    private String appCode;
    private String pushUrl;
    private String pullUrl;
    private String suiteId;
  }

  @Getter
  @Setter
  @Accessors(chain = true)
  public static class UserInfo {
    private String id;
    private String userName;
    private String mobile;
    private String email;
    private String isAdmin;
    private String mainDeptId;
    private String appRoleId;
  }
}
